package com.qst.yunpan.service;

import com.qst.yunpan.entity.Share;
import com.qst.yunpan.entity.ShareFile;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;


public interface ShareService {
    //分享文件
    public String shareFile(HttpServletRequest request,String currentPath,String[] shareFile) throws Exception;

    //查找分享文件
    public List<ShareFile> findShare(HttpServletRequest request,String shareUrl) throws Exception;

    //获取分享文件
    public List<ShareFile> getShareFile(HttpServletRequest request,List<Share> shares);

    //通过用户名查找分享的文件
    public List<ShareFile> findShareByName(HttpServletRequest request,byte status) throws  Exception;

    //取消分享链接
    public String cancelShare(String url,String filePath, byte status)throws Exception;








}
